package tests;

import knowse.app.TestDataObject;

import org.json.JSONException;
import org.json.JSONObject;


public class TC_TestDataObject {
	public static void main(String[] args){
		
		TC_TestDataObject td= new TC_TestDataObject();
		try{
		
		td.testParsingTestData();
		}catch(JSONException e ){
			
		}
		
	}
	public void testParsingTestData() throws JSONException{
		
		//create a temporary JSONObject
		JSONObject object=new JSONObject();
		object.put("class","TestRuagTestLog");
		object.put("method","test_test_utilization_per_week");
		object.put("message","Expected 0.001310896164021164 - 0.01310896164021164 (0.011798065476190476) to be < 1.0e-07.");
		object.put("type","Failure");
		object.put("location","/Users/feldt/dev/knowse/test/test_ruag_test_log.rb:60");
		
		//create a testDataObject from JSONObject
		TestDataObject testDataObject= new TestDataObject(object);
		testDataObject.PrintOutTestDataObject();
		
		
		
		
	}
		
}
